home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / gnulib / ghostscr / cc_h_b6p.mak < prev    next >
Encoding:
Makefile  |  1990-12-31  |  3.1 KB  |  110 lines

  1. #    Copyright (C) 1989, 1990 Aladdin Enterprises.  All rights reserved.
  2. #    Distributed by Free Software Foundation, Inc.
  3. #
  4. # This file is part of Ghostscript.
  5. #
  6. # Ghostscript is distributed in the hope that it will be useful, but
  7. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. # to anyone for the consequences of using it or for whether it serves any
  9. # particular purpose or works at all, unless he says so in writing.  Refer
  10. # to the Ghostscript General Public License for full details.
  11. #
  12. # Everyone is granted permission to copy, modify and redistribute
  13. # Ghostscript, but only under the conditions described in the Ghostscript
  14. # General Public License.  A copy of this license is supposed to have been
  15. # given to you along with Ghostscript so you can know your rights and
  16. # responsibilities.  It should be in a file named COPYING.  Among other
  17. # things, the copyright notice and this notice must be preserved on all
  18. # copies.
  19.  
  20. # makefile for Ghostscript, Unix/cc/X11 configuration.
  21.  
  22. # ------------------------------- Options ------------------------------- #
  23.  
  24. ####### The following are the only parts of the file you should need to edit.
  25.  
  26. # ------ Generic options ------ #
  27.  
  28. # Define the default directory/ies for the runtime
  29. # initialization and font files.  Separate multiple directories with a :.
  30. # `pwd` means use the directory in which the 'make' is being done.
  31.  
  32. GS_LIB_DEFAULT=`pwd`:`pwd`/fonts
  33.  
  34. # Choose generic configuration options.
  35.  
  36. # -DDEBUG
  37. #    includes debugging features (-Z switch) in the code.
  38. #      Code runs substantially slower even if no debugging switches
  39. #      are set.
  40. # -DNOPRIVATE
  41. #    makes private (static) procedures and variables public,
  42. #      so they are visible to the debugger and profiler.
  43. #      No execution time or space penalty.
  44.  
  45. GENOPT=
  46.  
  47. # ------ Platform-specific options ------ #
  48.  
  49. # Define the other compilation flags.
  50. # Add -DBSD4_2 for 4.2bsd systems.
  51. # Add -DSYSV for System V.
  52.  
  53. CFLAGS=-O
  54.  
  55. # Define platform flags for ld.
  56. # Most Unix systems accept -X, but some don't.
  57. # Sun OS4.n needs -Bstatic.
  58.  
  59. LDPLAT=-X
  60.  
  61. # Define any extra libraries to link into the executable.
  62. # The default is for X Windows.
  63.  
  64. EXTRALIBS= -lX11
  65.  
  66. # --------------------------- Choice of devices --------------------------- #
  67.  
  68. # Choose the device(s) to include.  See gdevs.mak for details.
  69.  
  70. DEVICES=x11
  71. DEVICE_OBJS=$(x11_)
  72.  
  73. # ---------------------------- End of options --------------------------- #
  74.  
  75. # Define the name of the makefile -- used in dependencies.
  76.  
  77. MAKEFILE=unix-cc.mak
  78.  
  79. # Define the extensions for the object and executable files.
  80.  
  81. OBJ=o
  82. XE=
  83.  
  84. # Define the ANSI-to-K&R dependency.
  85.  
  86. AK=ansi2knr$(XE)
  87.  
  88. # Define the directory separator and shell quote string.
  89.  
  90. DS=/
  91. Q=\"
  92.  
  93. # Define the compilation rules and flags.
  94.  
  95. CCFLAGS=$(GENOPT) $(CFLAGS)
  96.  
  97. .c.o:
  98.     ./ansi2knr $*.c _temp_.c
  99.     $(CC) $(CCFLAGS) -c _temp_.c
  100.     mv _temp_.o $*.o
  101.  
  102. CCA=./ccgs "$(CC) $(CCFLAGS)" _temp_.c
  103. CCNA=$(CCA)
  104. CCINT=$(CCA)
  105.  
  106. # --------------------------- Generic makefile ---------------------------- #
  107.  
  108. # The remainder of the makefile (ghost.mak, gdevs.mak, and unixtail.mak)
  109. # is generic.  tar_gs concatenates all these together.
  110.